<#assign menuId=4>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>新建大货</title>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <!-- bootstrap 3.0.2 -->
    <link href="../css/bootstrap.min.css" rel="stylesheet" type="text/css" />
    <!-- font Awesome -->
    <link href="../css/font-awesome.min.css" rel="stylesheet" type="text/css" />
    <!-- Ionicons -->
    <link href="../css/ionicons.min.css" rel="stylesheet" type="text/css" />
    <!-- Theme style -->
    <link href="../css/AdminLTE.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" href="../css/reset.css" />
	<!--datetimepicker-->
	<link rel="stylesheet" type="text/css" href="../css/datetimepicker/bootstrap-datetimepicker.min.css"/>
	<link rel="stylesheet" type="text/css" href="../css/datetimepicker/bootstrap-combined.min.css"/>
	
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
        *{
            margin: 0;
            padding: 0;
        }
        ul li{
            list-style: none;
            margin-top: 10px;
        }
        .pull-left{
            border-left: 6px solid #3882FF;
            padding: 0 5px;
        }
        .custormView{
            margin-top: 10px;
        }
        .red{
            color: red;
        }
        .clear{
            clear: both;
            width: 100%;
            height: 1px;

        }
        .breadcrumb>span{
            margin-right: 20px;
        }
        .six-font{
            font-size: 14px;
        }
        .six-font>span{
            font-size: 16px;
        }
        .clearfix>span>a{
            margin-left: 10px;
            margin-top: 1px;
            float: left;
        }
        .pull-left {
            border-left: 6px solid #3882FF;
            padding: 0 5px;
        }
        .right-text .pull-right:last-child{margin-right: 3rem;;}
        /*新增样式*/
		.ol_left{
            width: 100%;
            height: 30px;
            line-height: 30px;
            padding: 0;
        }
        .ol_left>li{
            float: left;
            margin-right: 5px;
        }
        .ol_left li, .ol_left{
        	margin-bottom: 0;
        }
    </style>
</head>
<body class="skin-blue">
<!-- header logo: style can be found in header.less -->
<#include "../header.html"/>
<div class="wrapper row-offcanvas row-offcanvas-left">
    <!-- Left side column. contains the logo and sidebar -->
    <#include "../menu.html"/>

    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">
        <section class="content-header">
            <h1 >上传尾查报告
            </h1>
          

        </section>
        <!-- Content Header (Page header) -->
        <section class="content">
            <div class="row">
                <div class="col-md-12">
                    <div class="box">
                        <div class="clearfix">
                            <span class="pull-left four-font">填写基本信息</span>
                        </div>
                        <div class="center">
                        <form id="form">
                            <table class="table table-bordered custormView">
                                <tr>
                                    
                                    <td>面料到期日</td>
                                    <td>
												<div 
								class="input-group date form_datetime col-md-5">
								<input class="form-control" type="text"
									name="materialExpire" value=""> <span
									class="input-group-addon"><span
									class="glyphicon glyphicon-th"></span></span>
							</div></td>
                                </tr>
                               
                                <tr>
                                <td>生产起始日 </td>
                                    <td>
                                    <div 
								class="input-group date form_datetime col-md-5">
								<input class="form-control" type="text"
									name="produceStartdate" value=""> <span
									class="input-group-addon"><span
									class="glyphicon glyphicon-th"></span></span>
							</div>
							<p></p>
							<div 
								class="input-group">是否有首件样 <input type="radio"/>有<input type="radio"/>无</div>
							</td>
                                </tr>
                                <tr><td>检查首件样时间</td>
                                    <td>
										<div 
								class="input-group date form_datetime col-md-5">
								<input class="form-control" type="text"
									name="firstSample" value=""> <span
									class="input-group-addon"><span
									class="glyphicon glyphicon-th"></span></span>
							</div>
							<p></p>
							<div class="form-group textarea">
                                            <textarea class="form-control" name="firstSampleMemo" rows="2" ></textarea>
                                        </div>
                                        
                                    </td>
                                </tr>
                                <tr><td>选择计划中查时间段</td>
                                    <td><div class="row">
                                        <div class="col-xs-3">
                                            <div 
								class="input-group date form_datetime">
								<input class="form-control" type="text"
									name="middleCheckStarttime" value=""> <span
									class="input-group-addon"><span
									class="glyphicon glyphicon-th"></span></span>
							</div>
                                        </div>
                                        <div class="col-xs-1">
                                            至
                                        </div>
                                        <div class="col-xs-3">
                                            <div 
								class="input-group date form_datetime">
								<input class="form-control" type="text"
									name="middleCheckEndtime" value=""> <span
									class="input-group-addon"><span
									class="glyphicon glyphicon-th"></span></span>
							</div>
                                        </div>
                                    </div>
                                
                                    </td>
                                </tr>
                                <tr><td>上传中查报告</td>
                                    <td>
												<div 
								class="input-group"><a href="###" class="fr">上传文件</a>
							</div>
                                        <p></p><div class="form-group textarea">
                                            <textarea name="uploadMiddleMemo" class="form-control" rows="2" ></textarea>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                <td>生产完成日 </td>
                                    <td>
                                    <div 
								class="input-group date form_datetime col-md-5">
								<input class="form-control" type="text"
									name="produceEnddate" value=""> <span
									class="input-group-addon"><span
									class="glyphicon glyphicon-th"></span></span>
							</div>
							</td>
                                </tr>
                                <tr>
                                <td>尾查时间 </td>
                                    <td>
                                    <div 
								class="input-group date form_datetime col-md-5">
								<input class="form-control" type="text"
									name="lastCheckTime" value=""> <span
									class="input-group-addon"><span
									class="glyphicon glyphicon-th"></span></span>
							</div>
							</td>
                                </tr>
                                <tr><td>上传尾查报告</td>
                                    <td>
															<div 
								class="input-group"><a href="###" class="fr">上传文件</a>
							</div><p></p>
                                        <div class="form-group textarea">
                                            <textarea class="form-control" name="uploadLastMemo" rows="2" ></textarea>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                           </form>
                           

                            <p>
                                <button type="button" class="btn btn-primary" style="margin-right: 10px;">保存</button>
                                <button type="button" class="btn btn-primary" style="margin-right: 10px;">提交</button>
                                
                                <button type="button" class="btn btn-default">取消</button>
                            </p>
                        </div>
                    </div><!-- /.box -->


                </div><!-- /.col -->

            </div><!-- /.row -->

        </section>

        <!-- Main content -->
        <section class="content">


        </section><!-- /.content -->


    </aside><!-- /.right-side -->
</div><!-- ./wrapper -->


<!-- jQuery 2.0.2 -->
<script src="../js/jquery.min.js"></script>
<!-- Bootstrap -->
<script src="../js/bootstrap.min.js" type="text/javascript"></script>
<!-- AdminLTE App -->
<script src="../js/AdminLTE/app.js" type="text/javascript"></script>
<!--datepickes-->
<script src="../js/plugins/datetimerpicker/bootstrap-datetimepicker.min.js" type="text/javascript"></script>
	
		<script src="../js/plugins/datetimerpicker/locales/bootstrap-datetimepicker.zh-CN.js" type="text/javascript"></script>
        
</body>
<script type="text/javascript">


$(function() {
    $('.form_datetime').datetimepicker({
    	format: 'yyyy-mm-dd hh:00',
       	language:  'zh-CN',  
        weekStart: 1,  
        todayBtn:  1,  
        autoclose: 1,  
        todayHighlight: 1,  
        startView: 2,  
        forceParse: 0,  
        showMeridian: 0,
        minView: 1,
        startDate: new Date()
    });
  
   
});
function uploadTM(){
	$("#form").ajaxSubmit({
        type: "POST",
        dataType: "json",
        url: "../productionpattern/saveLast",
        data:{businessId:$("#productionPatternId").val(),category:'scm_production_pattern-tm-file',flag:0},
        
        success : function(map) {  
        	if(map.head.respCode=="0000000"){
            	alert("保存成功");
            	_load_($("#productionPatternId").val(),'scm_production_pattern-tm-file')
            }else{
            	alert("LL"+map.body);
            }
        },  
        error : function(map) {  
            alert("出现错误，请刷新页面");  
        }  

    });
}
</script>
</html>
